package com.example.springresource01;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author hu wenhao
 * @version 1.0.0
 * @description
 * @date 2022/6/1 11:26
 */
@Component
public class UserRegisteredListener {

    @EventListener
    public void userRegist(UserRegisteredEvent event){
        System.out.println("event has active");
        System.out.println(event);
    }

}
